<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>添加任务</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/departmentManage.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/verifyPhone.js"></script>

</head>
<body>
<div class="container">
    <jsp:include page="_Member.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-8">
            <ul class="list-inline">
                <li>任务管理</li>
                <li>/</li>
                <li>任务详情</li>
            </ul>

            <form role="form" class="form-horizontal" >


                <div class="form-group">
                    <label class="col-sm-2 control-label">任务名称:</label>
                    <div class="col-sm-10">
                        ${mission.missionName}
                    </div>
                </div>

                <div class="form-group">
                    <label  class="col-sm-2 control-label">任务内容:</label>
                    <div class="col-sm-10">
                        ${mission.context }
                    </div>
                </div>

                <div class="form-group">
                    <label  class="col-sm-2 control-label">状态:</label>
                    <div class="col-sm-10">
                        ${mission.statusName }
                    </div>
                </div>

                <div class="form-group">
                    <label  class="col-sm-2 control-label">任务文件:</label>
                    <div class="col-sm-10">
                        <c:url value="/chair/fileDownload" var="downUrl">
                            <c:param name="fileName" value="${mission.missionName }"></c:param>
                            <c:param name="filePath" value="${mission.missionPath }"></c:param>
                        </c:url>
                        <a href="${downUrl}">下载 </a>
                    </div>
                </div>


<%--                <div class="form-group">--%>
<%--                    <div class="col-sm-offset-2 col-sm-10">--%>
<%--                        <div class="col-sm-3"></div>--%>
<%--                        <button type="submit" class="btn btn-primary col-sm-2">提交</button>--%>
<%--                        <div class="col-sm-2"></div>--%>
<%--                        <button type="reset" class="btn btn-danger col-sm-2">重置</button>--%>
<%--                        <div class="col-sm-3"></div>--%>
<%--                    </div>--%>
<%--                </div>--%>

            </form>
            <a class="btn btn-info btn-xs" href="<c:url value="/member/agreeThesis?id=${mission.id}&memberNo=${sessionScope.member.memberNo}"/>"><i class="fa fa-pencil"></i>接受任务</a>
        </div>
    </div>

</div>
</body>
</html>